<script type="text/javascript">
function bind() {
	var renren_bind = document.getElementById('renren_bind');
	renren_bind.submit();
}
</script>
<!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}-->
<script type="text/javascript">
function rrfeednewpermcheck() {
	var rrfeedbox = document.getElementById("feednew");
	if(rrfeedbox.checked){
	XN.Connect.showPermissionDialog('publish_feed',function(ok){if(!ok){rrfeedbox.checked="";}});
	}
}
function rrfeedrepermcheck() {
	var rrfeedbox = document.getElementById("feedre");
	if(rrfeedbox.checked){
	XN.Connect.showPermissionDialog('publish_feed',function(ok){if(!ok){rrfeedbox.checked="";}});
	}
}
</script>
<!--{/if}-->
<!--{if $_G[uid]}-->
	<!--{if !$isbind['bing']}-->
	<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp" id="renren_bind" >
		<table cellspacing="0" cellpadding="0" class="tfm">
			<caption>
			<h2 class="wx">{lang renren:bind_id}</h2>
			<p>{lang renren:bind_tip1}</p>
			</caption>
			<tr>
				<td>
					<div class="c">
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<input type="hidden" name="renren_bind" value="1" />
						<xn:login-button onlogin="bind();" ></xn:login-button>
					</div>
				</td>
			</tr>
		</table>
	</form>
	<!--{else}-->
	<div class="bm bw0">
	<ul class="tb cl">
		<li <!--{if $_G['gp_rr']==unbind|| $_G['gp_rr']==''}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=unbind">{lang renren:rr_unbind}</a></li>
		<li <!--{if $_G['gp_rr']==upava}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=upava">{lang renren:bind_avsync}</a></li>
		<li <!--{if $_G['gp_rr']==setper}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=setper">{lang renren:bind_conf}</a></li>
		<li <!--{if $_G['gp_rr']==rrfriend}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=rrfriend">{lang renren:bind_friend}</a></li>
		<li <!--{if $_G['gp_rr']==invitef}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=invitef">{lang renren:bind_infriend}</a></li>
	</ul>
		<!--{if $_G['gp_rr']=='unbind'||$_G['gp_rr']==''}-->
	<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
		<table cellspacing="0" cellpadding="0" class="tfm">
			<caption>
			<h2 class="wx">{lang renren:rr_unbind}</h2>
			<p>{lang renren:bind_tip2}</p>
			</caption>
			<tr>
				<td>
					<div class="c">
						<h3>{lang renren:rr_id}:{$rr_name}&nbsp;&nbsp;<img src="source/plugin/renren/template/image/connect_renren.png">&nbsp;&nbsp;{lang renren:dz_id}:{$dz_name}</h3>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="c">
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<button type="submit" name="renren_unbind" id="renren_unbind" value="true" class="pn pnp" /><strong>{lang renren:rr_unbind}</strong></button>
					</div>
				</td>
			</tr>
		</table>
	</form>
		<!--{elseif $_G['gp_rr']=='upava'}-->
	<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
		<table cellspacing="0" cellpadding="0" class="tfm">
			<!--{if $_G[renren]}-->
			<caption>
			<h2 class="wx">{lang renren:rr_av}</h2>
			<p>{lang renren:avsync_tip1}</p>
			</caption>
			<tr>
				<td>
					<img src="$headurl" />
				</td>
			</tr>
		</table>
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<button type="submit" name="renren_avatar_submit" id="renren_avatar_submit" value="true" class="pn pnp" /><strong>{lang renren:bind_avsync}</strong></button>
			<!--{else}-->
			<h2 class="wx">{lang renren:avsync_tip2}</h2>
			<xn:login-button onlogin="location.reload()"></xn:login-button>
		</table>
			<!--{/if}-->
</form>
		<!--{elseif $_G['gp_rr'] == 'setper'}-->
	<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
		<table cellspacing="0" cellpadding="0" class="tfm">
			<caption>
			<h2 class="wx">{lang renren:bind_conf}</h2>
			</caption>
			<tr>
				<td>
					<input type="hidden" name="formhash" value="{FORMHASH}" />
					{lang renren:rr_homeconf}<br />
					<label><input type="radio" name="RadioGroup1" value="0"<!--{if $per == 0}--> checked="checked" <!--{/if}-->/>{lang renren:rr_homen}</label><br />
					<label><input type="radio" name="RadioGroup1" value="1"<!--{if $per == 1}--> checked="checked"<!--{/if}-->/>{lang renren:rr_homef}</label><br />
					<label><input type="radio" name="RadioGroup1" value="2"<!--{if $per == 2}--> checked="checked"<!--{/if}-->/>{lang renren:rr_homea}</label><br /><br />
			<!--{if $iffeed}-->
					{lang renren:rr_feedconf}<br />
					{lang renren:rr_feedtip1}<br />
					<input id="feednew" name="feednew" type="checkbox" value="1"<!--{if $feed_s[0]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrfeednewpermcheck();"<!--{/if}--> /><label for="feednew">{lang renren:rr_feedthread}</label><br />
					<input id="feedre" name="feedre" type="checkbox" value="1"<!--{if $feed_s[1]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrfeedrepermcheck();"<!--{/if}--> /><label for="feedre">{lang renren:rr_feedreply}</label><br />
			<!--{/if}-->
				</td>
			</tr>
		</table>
		<button type="submit" name="renren_setper" id="renren_setper" value="true" class="pn pnp" /><strong>{lang renren:rr_submit}</strong></button>
	</form>
		<!--{elseif $_G['gp_rr'] == 'rrfriend'}-->
	{lang renren:rr_friend}
	<xn:friendpile show-faces="connected" face-size="medium" max-rows="2" face-space="5" width="615"></xn:friendpile>
		<!--{elseif $_G['gp_rr'] == 'invitef'}-->
	<xn:serverxnml style="width:810px;"> 
		<script type="text/xnml"> 
			<xn:request-form content="{lang renren:rr_invitedisc}&lt;xn:req-choice url=&quot;$_G['siteurl'] &quot; label=&quot;{lang renren:rr_accinvite}&quot;&gt;" action="$_G['siteurl']"> <xn:multi-friend-selector-x actiontext="{lang renren:rr_invite}" max="1000" mode="all"/> </xn:request-form>
		</script> 
	</xn:serverxnml>
		<!--{/if}-->
	</div>	
	<!--{/if}-->
<!--{/if}-->